const router = require('koa-router')()
const user_controller = require('../../controllers/user/index.js')

//测试
router.get('/test', (ctx, next) => {
    ctx.body = 'hello world'
})

//登录
router.post('/login', user_controller.login)

//注册
router.post('/register',user_controller.register)

//修改用户信息
router.post('/updatauser',user_controller.updatauserinfo)
//用户增加任务
router.post('/Taskinfo',user_controller.Taskinfo)
//请求任务列表
router.post('/reqTask',user_controller.reqTask)
//删除任务
router.post('/delTask',user_controller.delTask)//applicants
//接任务
router.post('/applicants',user_controller.applicants)//applicants
router.post('/Myorder',user_controller.Myorder)//applicants
router.post('/successtask',user_controller.successtask)//applicants

module.exports = router